
#循环结构


# while 循环

a = 100

while a>0:

    print(a)

    a -= 1


print("-"*50)

#计算1-100的和
i = 1
sum = 0

while i<=100:
    print(i)

    if i % 2 != 0:
        sum += i
    i += 1

print(sum)



